package com.xinpu.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * <p>
 * 企业表
 * </p>
 *
 * @author ayuan
 * @since 2021-06-10
 */
public class TCompany extends Model<TCompany> {

    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 账号
     */
    private String account;

    /**
     * 头像
     */
    private String portrait;

    /**
     * 密码
     */
    private String password;

    /**
     * 密码盐
     */
    private String salt;

    /**
     * 负责人
     */
    private String userName;

    /**
     * 电话
     */
    private String phone;

    /**
     * 名称
     */
    private String name;

    /**
     * 企业号
     */
    private String code;

    /**
     * 公司简介
     */
    private String intro;

    /**
     * 地址
     */
    private String address;

    /**
     * 详细地址
     */
    private String addressInfo;

    /**
     * 经度
     */
    private String lng;

    /**
     * 纬度
     */
    private String lat;

    /**
     * 状态0关闭1开启
     */
    private Integer status;

    /**
     * 人数
     */
    private Integer num;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 开始时间
     */
    private LocalDateTime startTime;

    /**
     * 过期时间
     */
    private LocalDateTime overdueTime;

    /**
     * 授权方corpid
     */
    private String authCorpid;

    /**
     * 永久授权码
     */
    private String permanentCode;

    /**
     * 应用编号
     */
    private String agentid;

    /**
     * 营业执照
     */
    private String certificate;

    /**
     * 租户编号
     */
    private String tenantId;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getPortrait() {
        return portrait;
    }

    public void setPortrait(String portrait) {
        this.portrait = portrait;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getSalt() {
        return salt;
    }

    public void setSalt(String salt) {
        this.salt = salt;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getIntro() {
        return intro;
    }

    public void setIntro(String intro) {
        this.intro = intro;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getAddressInfo() {
        return addressInfo;
    }

    public void setAddressInfo(String addressInfo) {
        this.addressInfo = addressInfo;
    }

    public String getLng() {
        return lng;
    }

    public void setLng(String lng) {
        this.lng = lng;
    }

    public String getLat() {
        return lat;
    }

    public void setLat(String lat) {
        this.lat = lat;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public LocalDateTime getStartTime() {
        return startTime;
    }

    public void setStartTime(LocalDateTime startTime) {
        this.startTime = startTime;
    }

    public LocalDateTime getOverdueTime() {
        return overdueTime;
    }

    public void setOverdueTime(LocalDateTime overdueTime) {
        this.overdueTime = overdueTime;
    }

    public String getAuthCorpid() {
        return authCorpid;
    }

    public void setAuthCorpid(String authCorpid) {
        this.authCorpid = authCorpid;
    }

    public String getPermanentCode() {
        return permanentCode;
    }

    public void setPermanentCode(String permanentCode) {
        this.permanentCode = permanentCode;
    }

    public String getAgentid() {
        return agentid;
    }

    public void setAgentid(String agentid) {
        this.agentid = agentid;
    }

    public String getCertificate() {
        return certificate;
    }

    public void setCertificate(String certificate) {
        this.certificate = certificate;
    }

    public String getTenantId() {
        return tenantId;
    }

    public void setTenantId(String tenantId) {
        this.tenantId = tenantId;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "TCompany{" +
                "id=" + id +
                ", account=" + account +
                ", portrait=" + portrait +
                ", password=" + password +
                ", salt=" + salt +
                ", userName=" + userName +
                ", phone=" + phone +
                ", name=" + name +
                ", code=" + code +
                ", intro=" + intro +
                ", address=" + address +
                ", addressInfo=" + addressInfo +
                ", lng=" + lng +
                ", lat=" + lat +
                ", status=" + status +
                ", num=" + num +
                ", createTime=" + createTime +
                ", startTime=" + startTime +
                ", overdueTime=" + overdueTime +
                ", authCorpid=" + authCorpid +
                ", permanentCode=" + permanentCode +
                ", agentid=" + agentid +
                ", certificate=" + certificate +
                ", tenantId=" + tenantId +
                "}";
    }
}
